package org.sprong.generagor.domain.entity;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author guoqiang.lv 2021/10/15
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class AddressVO {

    private String province;
    private String city;
    private String county;
    private String town;
    private String village;

    public AddressVO copy() {
        AddressVO newAddress = new AddressVO();
        newAddress.setProvince(this.getProvince());
        newAddress.setCity(this.getCity());
        newAddress.setCounty(this.getCounty());
        newAddress.setTown(this.getTown());
        newAddress.setVillage(this.getVillage());
        System.out.println(newAddress);
        return newAddress;
    }
}
